import Layout from '@/views/layout/Layout'

export default {
  path: '/admin',
  component: Layout,
  alwaysShow: true,
  meta: { title: '权限管理', icon: 'fa-key', noCache: true },
  children: [
    {
      path: 'menu',
      component: () => import('@/views/platform/admin/menu'),
      name: 'adminMenu',
      meta: { title: '菜单管理', noCache: true, roles: [] },
    },
    {
      path: 'dept',
      component: () => import('@/views/platform/admin/dept'),
      name: 'adminDept',
      meta: { title: '组织管理', noCache: true, roles: [] },
    },
    {
      path: 'user',
      component: () => import('@/views/platform/admin/user'),
      name: 'adminUser',
      meta: { title: '用户管理', noCache: true, roles: [] },
    },
    {
      path: 'role',
      component: () => import('@/views/platform/admin/role'),
      name: 'adminRole',
      meta: { title: '角色管理', noCache: true, roles: [] },
    },
    {
      path: 'quartz',
      component: () => import('@/views/platform/admin/quartz'),
      name: 'adminQuartz',
      meta: { title: '任务调度', noCache: true, roles: [] },
    },
    {
      path: 'param',
      component: () => import('@/views/platform/admin/param'),
      name: 'adminParam',
      meta: { title: '系统参数', noCache: true, roles: [] },
    },
    {
      path: 'dictionary',
      component: () => import('@/views/platform/admin/dictionary'),
      name: 'adminDictionary',
      meta: { title: '数据字典', noCache: true, roles: [] },
    },
    {
      path: 'appver',
      component: () => import('@/views/platform/admin/appver'),
      name: 'adminAppver',
      meta: { title: 'App管理', noCache: true, roles: [] },
    },
    {
      path: 'syslog',
      component: () => import('@/views/platform/admin/syslog'),
      name: 'adminSyslog',
      meta: { title: '日志', noCache: true, roles: [] },
    },
    {
      path: 'workflow',
      component: () => import('@/views/platform/workflow/workflow'),
      name: 'workflow',
      meta: { title: '工作流', noCache: true, roles: [] },
    },
  ],
}
